/**
 * 
 */
package data.mysql;

import java.sql.ResultSet;

import data.exception.DaoException;

/**
 * The results processor interface Process database results and get final
 * result.
 * 
 * @author chuxiaoyuan
 * 
 */
public interface IResultsProcessor<ResultType> {

	/**
	 * Populate the final result from the result set.
	 * 
	 * @param resultSet
	 *            the result set
	 * @param fieldsName
	 *            the fields to be populated.
	 * @return the final results.
	 * @throws DaoException
	 *             Dao exception.
	 */
	ResultType populateResults(ResultSet resultSet, String[] fieldsName)
			throws DaoException;

}
